SimpleGamemode
SimpleGamemode
SimpleGamemode, or SimpleGM for short, does exactly what the name says. This is my first plugin, so I went for something simple. While I am aware that there are other plugins like this, SimpleGM aims to cause no conflicts with any other plugins. It does this by using numbers for shorthand as opposed to letters.
Commands
/0 <player> - Changes the player's gamemode to Survival.
/1 <player> - Changes the player's gamemode to Creative.
/2 <player> - Changes the player's gamemode to Adventure.
/3 <player> - Changes the player's gamemode to Spectator.
/simplegm - Shows basic plugin info.
Permissions
AS OF VERSION 3.0, THESE PERMISSIONS ARE NO LONGER THE SAME
simplegm.* - Provides permission for all SimpleGM commands
simplegm.use - Provides permissions for changing your own gamemode
simplegm.use.others - Provides permissions for changing others' gamemodes (bother simplegm.use AND simplegm.use.others are required for this)
simplegm.info - Provides permission for /simplegm
Dev Builds
Development builds of this project can be acquired at the provided continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk.
You may obtain the latest version of this plugin here: <Currently no dev build server>
These plugins are rarely tested and, as stated above, are not approved.
Source Code
You may view this plugin's source code here: https://github.com/nextinfinity/SimpleGamemode
@DoenerMitStyle
The code is using the API, it isn't from it. Anyways source is on the page if you're interested.
@XGlx Thats right, but the most of your code is from the bukkit API. And everybody can use the API if he want.
@Polarcraft
Actually, All Rights Reserved makes it illegal to use those kinds of things. Of course, if you really want to go through that much trouble I could care less about you seeing my code, but you get the point. On a similar note, I'll soon be putting all my public projects on github, so as long as I'm credited as the original author for any of my code that is used I'm ok with it.
@SeanyJo
There is a program for windows called jd-gui go download that to see his source code.
@xGIx
And also as I said above you can get the code via that. So really your code is not private anymore.
@xGIx
I prefer to keep my code private. PM me if you would like help getting started though, I would be glad to provide help.
Is there a source code for this? I'm trying to learn how to make a plugin change a players gamemode.
@Peri777
I am well aware of this, but there's a limited range of options for your first plugin. Honestly, when I had the idea for the plugin I did not know there were any out there.
Its a good PlugIn, but SOOO many other plugins have it included :(