Giter VIP home page Giter VIP logo

mfirstplugin-minecraft's Introduction

MFirstPlugin | A.K.A. MFP

A Minecraft plugin developed for learning purposes. This plugin is not intended to be used on production servers. Only for learning purposes and for fun.

NOTE: This code has inefficient ways of developing a proper plugin in a real case scenery. Also it's in spanglish (some things in english and others in spanish. Why? because sometimes I forgot in what language I was currently using ๐Ÿซฅ. You can check how this plugin was developed by looking at the commits.


Commands

/fairyfly

  • Description: Gives the player the ability to fly for 10 seconds.
  • Usage: /fairyfly
  • Permissions: myfirstplugin.fairyfly

/die

  • Description: Kills the player. Pretty self-explanatory.
  • Usage: /die
  • Permissions: None added.

/fart or /fart what could be?

  • Description: Unclear command. You might want to specify its purpose.
  • Usage: /fart [arg]
  • Permissions: None added.

/god

  • Description: Makes the player invincible.
  • Usage: /god
  • Permissions: None added.

/setspawn

  • Description: Sets the spawn point at the current location in the current world.
  • Usage: /setspawn
  • Permissions: None added.

/spawn

  • Description: Teleports the player to the spawn point.
  • Usage: /spawn
  • Permissions: None added.

/cmdargs

  • Description: Used for testing command arguments.
  • Usage: /cmdargs [args]
  • Permissions: None added.

/feed

  • Description: Feeds the player if needed.
  • Usage: /feed
  • Permissions: None added.

/testperm

  • Description: Tests for see if inherited permissions work.
  • Usage: /testperm [permission]
  • Permissions: myfirstplugin.test

/set

  • Description: set command (and trying more than 1 arg) for everything.
  • Usage: /
  • Permission: myfirstplugin.set

Listeners

DeathListener

  • Description: Listens for player deaths.

PlayerListener (onPlayerJoinSteroids )

  • Description: Listens for join event and check if the player has been on the server before.

SpawnListener

  • Description: Listens for player respawn events and checks if the player has been on the server.

XPBottleBreakListener

  • Description: Listens for the event when an XP bottle is thrown and explodes.

Installation

  1. Download the latest release from the releases page.
  2. Place the JAR file into your server's plugins folder.
  3. Restart or reload your server.

Permissions

  • myplugin.fairyfly: Permission to use the /fairyfly command.
  • myplugin.god: Permission to use the /god command.
  • myplugin.setspawn: Permission to use the /setspawn command.
  • myplugin.spawn: Permission to use the /spawn command.
  • myplugin.cmdargs: Permission to use the /cmdargs command.
  • myplugin.feed: Permission to use the /feed command.
  • myplugin.testperm: Permission to use the /testperm command.

Configuration

You can customize the plugin's behavior by editing the config.yml file.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

mfirstplugin-minecraft's People

Contributors

naicriz avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.