mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 04:26:42 +00:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
4f6a0ca5d3 | |||
f3684cc2ce | |||
772b7e43f7 | |||
c308c9a268 | |||
fcb424a793 | |||
be1acb4e03 | |||
386989fa69 | |||
4c7cd9cb23 | |||
1f87c05547 |
65
CONTRIBUTING.md
Normal file
65
CONTRIBUTING.md
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# How to contribute
|
||||||
|
|
||||||
|
TotalFreedomMod aims to be a fully functional all-op server mod which works in
|
||||||
|
a large range of configurations. In order to be as flexible as possible on the
|
||||||
|
server-end, we encourage contributing to TotalFreedomMod by making 'pull-requests'
|
||||||
|
to this repository.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
* Make sure you have a [GitHub account](https://github.com/signup/free)
|
||||||
|
* If the issue is a bug, submit a ticket for it, assuming one does not already exist.
|
||||||
|
* Clearly describe the issue including steps to reproduce it.
|
||||||
|
* Make sure you fill in the earliest version that you know has the issue.
|
||||||
|
* Fork the repository on GitHub
|
||||||
|
|
||||||
|
## Making Changes
|
||||||
|
|
||||||
|
* Create a topic branch from where you want to base your work.
|
||||||
|
* This is usually the master branch.
|
||||||
|
* Only target release branches if you are certain your addition must be on that
|
||||||
|
branch.
|
||||||
|
* To quickly create a topic branch based on master; `git checkout -b contribution`
|
||||||
|
Please avoid working directly on the `master` branch.
|
||||||
|
* Make changes and commit where necessary.
|
||||||
|
* Check for unnecessary whitespace with `git diff --check` before committing.
|
||||||
|
* Make sure your commit messages are in line with those which are already made.
|
||||||
|
* Make sure your changes build (*and work!*).
|
||||||
|
|
||||||
|
## Tips on getting your pull request accepted
|
||||||
|
* Make sure your changes work and compile without difficulty.
|
||||||
|
* Make sure your change adds something useful, do not add commands to micromanage
|
||||||
|
the server. (ie: Shorthands for a collection of commands)
|
||||||
|
* Features must be in line the general idea of "Total Freedom".
|
||||||
|
* Changes must be directed towards the main "TotalFreedom" server. Adding names such
|
||||||
|
as the name of your own TotalFreedom-like server will get your pull request denied.
|
||||||
|
* Do not add yourself to the developer list.
|
||||||
|
* Ensure that you use the correct whitespace-style. That is: 4 spaces as indentation.
|
||||||
|
* Please make sure your changes are written such as other features would be. Eg: commands
|
||||||
|
have their own class and extend TFM_Command.
|
||||||
|
* Make sure your code is written in the [Allman style](http://en.wikipedia.org/wiki/Indent_style#Allman_style).
|
||||||
|
* Do not increment the version number.
|
||||||
|
* If you want to add multiple changes, please make one pull request per change. This
|
||||||
|
way, it's easier to accept your changes faster and won't block the other changes if there
|
||||||
|
is an issue with a specific line of code.
|
||||||
|
* Please make sure there are no bugs in your code.
|
||||||
|
* Please avoid having to add files in the main namespace where possible.
|
||||||
|
* Make sure all changes work before you commit these, this avoids having multiple
|
||||||
|
unnecessary commits.
|
||||||
|
* Please refrain from using an excessive amount of commits. As few as possible is generally the best.
|
||||||
|
* Please do not spread your addition over several pull-requests.
|
||||||
|
|
||||||
|
## Submitting Changes
|
||||||
|
|
||||||
|
* Push your changes to a topic branch in your fork of the repository.
|
||||||
|
* Submit a pull request to this repository.
|
||||||
|
* Explain in detail what each one of your commits changes and point out any big changes.
|
||||||
|
* Wait as a developer evaluates your changes.
|
||||||
|
|
||||||
|
# Additional Resources
|
||||||
|
|
||||||
|
* [TotalFreedom information](http://totalfreedom.me)
|
||||||
|
* [TotalFreedom forums](http://totalfreedom.boards.net)
|
||||||
|
* [Bug tracker](https://github.com/TotalFreedom/TotalFreedomMod/issues)
|
||||||
|
* [General GitHub documentation](http://help.github.com/)
|
||||||
|
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
|
16
LICENCE.md
Normal file
16
LICENCE.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Legal
|
||||||
|
|
||||||
|
TotalFreedomMod by Madgeek1450 and DarthSalamon is an effort to create an opensource plugin to effectively run a "Total Freedom" like all-Op server. It consists of over 85 custom coded commands and a large variety of distinguishable features not included in any other plugin. The plugin has since its beginning grown immensely. Together with the main server "TotalFreedom" (http://totalfreedom.me) TotalFreedomMod has a long-standing reputation of effectiveness whilst maintaining a clear feel of openness towards the administrators and the players themselves.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
TotalFreedomMod sourcecode is freely available under the GNU GPLv3 License with a few restrictions in place. The license is available here: http://www.gnu.org/licenses/gpl.txt
|
||||||
|
|
||||||
|
The few restrictions are in place to make sure that credit is given to the original authors who remain the maintainers of the plugin and it's sourcecode.
|
||||||
|
|
||||||
|
These are the restrictions under which the sourcecode is licensed:
|
||||||
|
* A un-edited copy of this license must always be included with this sourcecode.
|
||||||
|
* TotalFreedomMod sourcecode and its derrivations are freely distributable between anyone who choses to download it.
|
||||||
|
* You may not remove the keywords "Madgeek1450", "StevenLawson", "DarthSalamon" and "jeromsar" from any part of the sourcecode.
|
||||||
|
* However, compiled binaries (*.jar's) are not to be distributed. If you wish to obtain a copy of TotalFreedomMod you must compile the original sourcecode or it's derivations yourself using an IDE like netbeans. Official superadmins and above of the TotalFreedom (totalfreedom.me) server may obtain a compiled libary with the same limitations as described in this document.
|
||||||
|
* Any conditions on this license may be waived by any of the official developers.
|
@ -1,5 +1,5 @@
|
|||||||
#Mon, 03 Jun 2013 23:08:42 +0200
|
#Sun, 23 Jun 2013 15:16:34 +0200
|
||||||
|
|
||||||
program.VERSION=2.18
|
program.VERSION=2.19
|
||||||
program.BUILDNUM=216
|
program.BUILDNUM=221
|
||||||
program.BUILDDATE=06/03/2013 11\:08 PM
|
program.BUILDDATE=06/23/2013 03\:16 PM
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#Build Number for ANT. Do not edit!
|
#Build Number for ANT. Do not edit!
|
||||||
#Mon Jun 03 23:08:42 CEST 2013
|
#Sun Jun 23 15:16:34 CEST 2013
|
||||||
build.number=217
|
build.number=222
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# TotalFreedomMod v2.18 Configuration
|
# TotalFreedomMod v2.19 Configuration
|
||||||
# by Madgeek1450 and DarthSalamon
|
# by Madgeek1450 and DarthSalamon
|
||||||
|
|
||||||
# Block placement prevention:
|
# Block placement prevention:
|
||||||
@ -8,6 +8,7 @@ allow_lava_damage: false
|
|||||||
allow_lava_place: false
|
allow_lava_place: false
|
||||||
allow_water_place: false
|
allow_water_place: false
|
||||||
allow_fluid_spread: false
|
allow_fluid_spread: false
|
||||||
|
allow_tnt_minecarts: false
|
||||||
|
|
||||||
# Explosion management:
|
# Explosion management:
|
||||||
allow_explosions: false
|
allow_explosions: false
|
||||||
|
@ -11,7 +11,6 @@ import me.StevenLawson.TotalFreedomMod.TotalFreedomMod;
|
|||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
|
@ -36,7 +36,7 @@ public class TFM_EntityListener implements Listener
|
|||||||
@EventHandler(priority = EventPriority.HIGH)
|
@EventHandler(priority = EventPriority.HIGH)
|
||||||
public void onEntityCombust(EntityCombustEvent event)
|
public void onEntityCombust(EntityCombustEvent event)
|
||||||
{
|
{
|
||||||
if (!TotalFreedomMod.allowFireSpread)
|
if (!TotalFreedomMod.allowExplosions)
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
@ -45,20 +45,34 @@ public class TFM_PlayerListener implements Listener
|
|||||||
{
|
{
|
||||||
case WATER_BUCKET:
|
case WATER_BUCKET:
|
||||||
{
|
{
|
||||||
player.getInventory().setItem(player.getInventory().getHeldItemSlot(), new ItemStack(Material.COOKIE, 1));
|
if (!TotalFreedomMod.allowWaterPlace)
|
||||||
player.sendMessage(ChatColor.GRAY + "Water buckets are currently disabled.");
|
{
|
||||||
event.setCancelled(true);
|
player.getInventory().setItem(player.getInventory().getHeldItemSlot(), new ItemStack(Material.COOKIE, 1));
|
||||||
return;
|
player.sendMessage(ChatColor.GRAY + "Water buckets are currently disabled.");
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case LAVA_BUCKET:
|
case LAVA_BUCKET:
|
||||||
{
|
{
|
||||||
player.getInventory().setItem(player.getInventory().getHeldItemSlot(), new ItemStack(Material.COOKIE, 1));
|
if (!TotalFreedomMod.allowLavaPlace)
|
||||||
player.sendMessage(ChatColor.GRAY + "Lava buckets are currently disabled.");
|
{
|
||||||
event.setCancelled(true);
|
player.getInventory().setItem(player.getInventory().getHeldItemSlot(), new ItemStack(Material.COOKIE, 1));
|
||||||
|
player.sendMessage(ChatColor.GRAY + "Lava buckets are currently disabled.");
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case POTION:
|
case EXPLOSIVE_MINECART:
|
||||||
{
|
{
|
||||||
|
if (!TotalFreedomMod.allowTntMinecarts)
|
||||||
|
{
|
||||||
|
player.getInventory().clear(player.getInventory().getHeldItemSlot());
|
||||||
|
player.sendMessage(ChatColor.GRAY + "TNT minecarts are currently disabled.");
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -98,7 +112,6 @@ public class TFM_PlayerListener implements Listener
|
|||||||
}
|
}
|
||||||
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public class TFM_RollbackManager
|
|||||||
{
|
{
|
||||||
e = new ArrayList<TFM_RollbackEntry>();
|
e = new ArrayList<TFM_RollbackEntry>();
|
||||||
}
|
}
|
||||||
e.add(entry);
|
e.add(0, entry);
|
||||||
entries.put(player.getName(), e);
|
entries.put(player.getName(), e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ public class TFM_Util
|
|||||||
private static final Map<String, Integer> eject_tracker = new HashMap<String, Integer>();
|
private static final Map<String, Integer> eject_tracker = new HashMap<String, Integer>();
|
||||||
public static final Map<String, EntityType> mobtypes = new HashMap<String, EntityType>();
|
public static final Map<String, EntityType> mobtypes = new HashMap<String, EntityType>();
|
||||||
public static final List<String> STOP_COMMANDS = Arrays.asList("stop", "off", "end", "halt", "die");
|
public static final List<String> STOP_COMMANDS = Arrays.asList("stop", "off", "end", "halt", "die");
|
||||||
public static final List<String> DEVELOPERS = Arrays.asList("Madgeek1540", "DarthSalamon", "AcidicCyanide", "wild1145", "HeXeRei452", "Disaster839");
|
public static final List<String> DEVELOPERS = Arrays.asList("Madgeek1450", "DarthSalamon", "AcidicCyanide", "wild1145", "HeXeRei452", "disaster839");
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
|
@ -201,6 +201,8 @@ public class TotalFreedomMod extends JavaPlugin
|
|||||||
public static boolean allowLavaPlace = false;
|
public static boolean allowLavaPlace = false;
|
||||||
public static boolean allowWaterPlace = false;
|
public static boolean allowWaterPlace = false;
|
||||||
public static Boolean allowExplosions = false;
|
public static Boolean allowExplosions = false;
|
||||||
|
public static boolean allowFliudSpread = false;
|
||||||
|
public static boolean allowTntMinecarts = false;
|
||||||
public static double explosiveRadius = 4.0D;
|
public static double explosiveRadius = 4.0D;
|
||||||
public static boolean autoEntityWipe = true;
|
public static boolean autoEntityWipe = true;
|
||||||
public static boolean nukeMonitor = true;
|
public static boolean nukeMonitor = true;
|
||||||
@ -222,7 +224,6 @@ public class TotalFreedomMod extends JavaPlugin
|
|||||||
public static boolean tossmobEnabled = false;
|
public static boolean tossmobEnabled = false;
|
||||||
public static boolean generateFlatlands = true;
|
public static boolean generateFlatlands = true;
|
||||||
public static String flatlandsGenerationParams = "16,stone,32,dirt,1,grass";
|
public static String flatlandsGenerationParams = "16,stone,32,dirt,1,grass";
|
||||||
public static boolean allowFliudSpread = false;
|
|
||||||
public static boolean adminOnlyMode = false;
|
public static boolean adminOnlyMode = false;
|
||||||
public static boolean protectedAreasEnabled = true;
|
public static boolean protectedAreasEnabled = true;
|
||||||
public static boolean autoProtectSpawnpoints = true;
|
public static boolean autoProtectSpawnpoints = true;
|
||||||
@ -245,6 +246,7 @@ public class TotalFreedomMod extends JavaPlugin
|
|||||||
allowLavaPlace = config.getBoolean("allow_lava_place", allowLavaPlace);
|
allowLavaPlace = config.getBoolean("allow_lava_place", allowLavaPlace);
|
||||||
allowWaterPlace = config.getBoolean("allow_water_place", allowWaterPlace);
|
allowWaterPlace = config.getBoolean("allow_water_place", allowWaterPlace);
|
||||||
allowExplosions = config.getBoolean("allow_explosions", allowExplosions);
|
allowExplosions = config.getBoolean("allow_explosions", allowExplosions);
|
||||||
|
allowTntMinecarts = config.getBoolean("allow_tnt_minecarts", allowTntMinecarts);
|
||||||
explosiveRadius = config.getDouble("explosiveRadius", explosiveRadius);
|
explosiveRadius = config.getDouble("explosiveRadius", explosiveRadius);
|
||||||
autoEntityWipe = config.getBoolean("auto_wipe", autoEntityWipe);
|
autoEntityWipe = config.getBoolean("auto_wipe", autoEntityWipe);
|
||||||
nukeMonitor = config.getBoolean("nuke_monitor", nukeMonitor);
|
nukeMonitor = config.getBoolean("nuke_monitor", nukeMonitor);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: TotalFreedomMod
|
name: TotalFreedomMod
|
||||||
main: me.StevenLawson.TotalFreedomMod.TotalFreedomMod
|
main: me.StevenLawson.TotalFreedomMod.TotalFreedomMod
|
||||||
version: 2.18
|
version: 2.19
|
||||||
description: Plugin for the Total Freedom server.
|
description: Plugin for the Total Freedom server.
|
||||||
authors: [StevenLawson / Madgeek1450, JeromSar / DarthSalamon]
|
authors: [StevenLawson / Madgeek1450, JeromSar / DarthSalamon]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user