elgarl / towny Goto Github PK
View Code? Open in Web Editor NEWTowny Advanced plugin for Bukkit @ http://palmergames.com/towny/
Home Page: http://palmergames.com/towny/
Towny Advanced plugin for Bukkit @ http://palmergames.com/towny/
Home Page: http://palmergames.com/towny/
Towny advanced is developed by ELgarL. Releases, Dev builds and all other plugins I maintain/dev are available from... * http://palmergames.com/towny If you need help or just want to chat, join us in our IRC channel #towny on the Esper.net network. I took over a few years ago and am just one of many devs who have held this position in the past. Licensing: http://creativecommons.org/licenses/by-nc-nd/3.0/ We don't object to you making your own forks and builds but we do object to people being selfish, which is why we specify No Derivative Works. If you want to modify the code to add some nice feature the least you can do is ask and submit a pull request to allow everyone to benefit from it.
Is there any estimated time for the release of UUID support?
Don't know if its possible but for the Config section where you set what items ids can be switched or used , is there any way you could make and option to use * which would symbolically mean all ids, its just that in FTB mod packs there is so many ids you need to cover of course.
Thanks
Alistair
Hey,
is there any way to freeze a players or towns acc if they are on holiday ? Some comamnd like /inactive or /holiday 2w : this could freeze/jail the player and all his stuff and when he comes back he has to say something like /holiday back to go on again.
Stacktrace:
2012-08-04 21:49:39 [SEVERE] Could not pass event PlayerCommandPreprocessEvent to TownyChat
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:324)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:872)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:826)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:808)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.IllegalArgumentException: Command cannot be empty
at org.apache.commons.lang.Validate.notEmpty(Validate.java:363)
at org.bukkit.event.player.PlayerCommandPreprocessEvent.setMessage(PlayerCommandPreprocessEvent.java:62)
at com.palmergames.bukkit.TownyChat.listener.TownyChatPlayerListener.onPlayerCommandPreprocess(Unknown Source)
at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:322)
... 17 more
Solution->
com.plamergames.bukkit.TownyChat.listener.TownyChatPlayerListener.java lines 36 to 70 something
@eventhandler(priority = EventPriority.LOWEST)
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
Player player = event.getPlayer();
// Test if this player is registered with Towny.
try {
TownyUniverse.getDataSource().getResident(player.getName());
} catch (NotRegisteredException e) {
return;
}
String split[] = event.getMessage().split("\\ ");
String command = split[0].trim().toLowerCase().replace("/", "");
String message = "";
if (split.length > 1)
message = StringMgmt.join(StringMgmt.remFirstArg(split), " ");
//if(message.length() <= 0) return;
Channel channel = plugin.getChannelsHandler().getChannel(player, command);
if (channel != null) {
/*
* If there is no message toggle the chat mode.
*/
if (message.isEmpty()) {
if (plugin.getTowny().hasPlayerMode(player, channel.getName()))
plugin.getTowny().removePlayerMode(player);
else
plugin.getTowny().setPlayerMode(player, new String[]{channel.getName()}, true);
} else {
/*
* Flag this as directed chat and trigger a player chat event
*/
event.setMessage(message);
directedChat.put(player, command);
player.chat(message);
}
event.setCancelled(true);
}
}
(Short story: moved event.setMessage() into if(!message.isEmpty()).)
I'm running Towny 0.81.0.20 I'm having several issues with the permissions, i'd like to prevent normal users from toggling mobs on/off in their town(s) and only allow that feature for VIP users. I've given my normal 'Member' class the -towny.command.town.toggle.mobs and -towny.command.plot.toggle.mobs permissions.
To test, I created a new town, put up a plot for sale, and transferred mayorship to an NPC.
I then demoted myself to 'Member', purchased the plot and was still able to 'toggle mobs' at both the town and plot level.
Thinking it might be related to the NPC Mayor, I transferred mayorship to another real player, and was again able to toggle mobs at the town level. (but strangely NOT on my own plot within town, saying I was not mayor or assistant. I was neither mayor nor assistant while the NPC was in charge, yet I was able to toggle mobs in a plot)
Even after giving players the permission node towny.wild.item_use.* as well as nodes for each of the item IDs, the only people who can use any items in the wild are ops and people with the node ''. I have also tried the other node that was on one of the towny wikis (that I think was probably a typo), towny.wild.itemuse.
When running the /p command with a singular letter after, it attempts to create the essentials data.
E.g. "/p a" will output in console:
[PLAYER_COMMAND] : /p a
Creating empty config: /plugins/Essentials/a.yml
Which then outputs ingame:
Registered: Dec 31 1969 | Last Online: December 31 @ 19:00
Owner of: 0 plots
It's only been noticed for a Month now. Might have been when Bukkit changed the BlockFace code. I also wanted to wait, i thought you may have already knew about it and didn't want to waste my time or yours.
Things like Pistons, Stairs, etc. don't regen correctly.
Some things are now duping: like PressurePlates
I guess I could change the configs to not allow those Blocks but I'd like to see what you had to say about this. I'm sure there are more Blocks that need looking into it.
Hi there,
towny (to be more precise: The permission part) conflicts with Jobs!
I am currently running Bukkit 1.4.2-R0.2 (#02455), Jobs 2.9.0 (the issue was present with Jobs 2.8.5 and bukkit 1.3.2-R2.0, too), bPermissions 2.9.24, Vault 1.2.19 (but you are modifying permissions directly instead of the Vault bridge I guess) and Towny v0.82.0.0
The error message looks like this:
22:53:56 [WARNING] [Towny] Task #4516 for Towny v0.82.0.0 generated an exception
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
at java.util.HashMap$KeyIterator.next(HashMap.java:928)
at org.bukkit.permissions.PermissibleBase.clearPermissions(PermissibleBase.java:168)
at org.bukkit.permissions.PermissibleBase.recalculatePermissions(PermissibleBase.java:149)
at org.bukkit.permissions.PermissibleBase.addAttachment(PermissibleBase.java:124)
at org.bukkit.craftbukkit.entity.CraftHumanEntity.addAttachment(CraftHumanEntity.java:116)
at com.palmergames.bukkit.towny.permissions.TownyPerms.assignPermissions(Unknown Source)
at com.palmergames.bukkit.towny.tasks.OnPlayerLogin.run(Unknown Source)
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
....
22:53:56 [SEVERE] java.util.ConcurrentModificationException
22:53:56 [SEVERE] at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953)
22:53:56 [SEVERE] at java.util.LinkedList$ListItr.next(LinkedList.java:886)
22:53:56 [SEVERE] at org.bukkit.permissions.PermissibleBase.recalculatePermissions(PermissibleBase.java:160)
22:53:56 [SEVERE] at org.bukkit.craftbukkit.entity.CraftHumanEntity.recalculatePermissions(CraftHumanEntity.java:132)
22:53:56 [SEVERE] at org.bukkit.permissions.PermissionAttachment.setPermission(PermissionAttachment.java:82)
22:53:56 [SEVERE] at me.zford.jobs.container.JobsPlayer.recalculatePermissions(JobsPlayer.java:321)
22:53:56 [SEVERE] at me.zford.jobs.container.JobsPlayer.loadDAOData(JobsPlayer.java:74)
22:53:56 [SEVERE] at me.zford.jobs.bukkit.PlayerManager.addPlayer(PlayerManager.java:29)
22:53:56 [SEVERE] at me.zford.jobs.bukkit.PlayerLoginManager.run(PlayerLoginManager.java:41)
I personally have no idea of permission modification, so I can't help you here unfortunately.
This error doesn't affect gameplay (as far as I know, but I haven't dug into this issue very deeply), but it should be fixed (if possible without too much effort)
greetings,
megge
I have Towny, PermissionsEX, Essentials
It works fine, people not in certain groups cant see a message in say /admin, or /mod... Issue I am having is that the tags dont show. Like [TC] or [MOD] before the suffix that permissions has.. How do I fix this?
When a plot that is for sale is purchased, and then later unclaimed, the plot is then back up for sale, but for $0.00 instead of the original price. So unless I catch this, someone else can come along and purchase the plot for nothing.
Is there a way to fix this, or perhaps make a plot no longer for sale after it's claimed?
Thanks
com.palmergames.bukkit.towny.regen.PlotBlockData restoreNextBlock()
Here is a little suggestion to better support towns/nations managed by server staff rather than regular players. All of these should be set via the townyadmin town/nation command
no-upkeep flag: exempts a town/nation from paying the daily upkeep
peacefull flag: residents of the town/nation are immune to pvp. town/nation is automatically assumed neutral in war events
unclaimable flag: this town/towns in this nation can't be conquered via flag-war
https://github.com/ElgarL/Towny/blob/master/src/english.yml#L307
"if your sure" should be "you're"
When a player (not in a town) attempts to switch/break/destroy on a plot in a town owned by a player within that town, it throws the errors:
This currently allows the player (who is not in a town) to destroy/build/open chests/etc on any plot owned by a regular member.
Unable to view any other chat channels after update to 1.3. Verified towny.command.chat.spy command and towny.chat.spy perms.
when you invite somebody to the town you get an invite with the msg /accept /deny when you type /accept it says you dont have any invites
how do i need to fix that
If I claim a line of chunks, let's say 10 chunks long, I can go back to any of the chunks between 1 and 10 and unclaim them. So if I unclaim chunks 2-9 I've essentially made an outpost at chunk 10. :)
Is there any way to prevent users from unclaiming chunks that are not on the edge of their town?
Hello,
A player suggested having plot permissions for mcMMO parties. I don't know how well this would work since parties could be disbanded and whatnot but maybe someone would like the idea and want to make it a reality. So just thought I would put it down and see what thoughts you have on it.
Thanks!
Well like the title says, I could use an PlotClaimEvent & PlotUnclaimEvent for the API
so I can hook into plot claiming.
I think they could be the same as the TownClaimEvent & TownUnclaimEvent.
Only triggered on the /plot claim of course.
Although I would like all the Claim and Unclaim events to have an getResident() function too but it isn't a must.
Seems like it is hard coded to allow only mayors and "assistants under old system" to withdraw money even if given the correct permissions.
Tried in permissionbukkit, adding
towny_maxoutposts: 2
to the default permissions node, but users can still make more than 2 outposts. switched to groupmanager to test it out, and put it under the info node like the wiki suggests:
groups:
Default:
default: true
permissions:
- -bukkit.command.kill
- bukkit.command.time.set
- towny.wild.*
inheritance:
info:
prefix: '&e'
build: false
suffix: ''
towny_maxoutposts: 2
but users are still able to set more than 2 outposts. i know this permission group is being loaded for my users because i can control whether or not they can set the time by changing that one line up there.
does anyone know how to make this work? for now i have to disable outposts, but i'd love to allow towns to have 2.
thanks.
If Towny maintained a group for each town it would open up a lot of integration possibilities without the other plugins having to directly mess with Towny. I would recommend a town group prefix so a town named "abaddon" would have a group name of "town_abaddon" or "town.abaddon." This would prevent some wiseacre from naming their town "Admin" and getting admin perms for everyone in the town. Nations could be similar. For nations you could have all town groups inherit from a nation group and any town that doesn't belong to a nation inherit from a "nation_unaffiliated" / "nation_none" / "nation_independent" group or something similar.
If you wanted to get REALLY crazy you could actually have town and nation membership be based on these permissions groups which would give admins more tools to help mayors manage their towns and/or nations. It would also open certain possibilities like allowing players to be members of multiple towns or allowing towns to be members of multiple nations.
Having these groups would make it very simple for other chat plugins to implement TownyChat style functionality or allow a town member to assign their town group or a neighboring town group to LWC permissions...
I'd like to see a new Event being added, similar to Factions and WorldGuards 'DisallowedPVPEvent'. This event should get fired when Towny cancels PVP.
I need this because my plugin overrides PVP prevention plugins. This works just fine, but the "PVP is disabled in x" messages from Towny still pop up. So I want to cancel those as well.
Here's WorldGuard's DisallowedPVPEvent. That has everything I need ;)
Please take this into consideration for your next update. Thanks!
This allows anyone with nation.deposit perms to kick a town from the nation.
Hello.
When I use /town add Player
, the Player is automaticly added into town, no matter if he write /town join Town
or /accept
. This same for adding town into nation.
I use latest build.
Also, can you include Questioner into Towny? Questioner doesn't work at all for me.
/townyadmin import %from% %to%
Example: /townyadmin import flatfile mysql
to convert the flatfile DB to a MySQL DB.
Spigot build 934
Towny 0.83.0.0
If a player's maximum health is set to under 20, the plugin will spit out IllegalArgumentExceptions when the configuration is set to heal people in their towns. This is caused by the code looking for a player health value of 20 and does not take into account this can be adjusted.
Line 59 on HealthRegenTimerTask:
int currentHP = player.getHealth();
if (currentHP < 20) {
player.setHealth(++currentHP);
If the player's max health is say 10 the plugin will try to do player.setHealth(11) which is out of bounds for the server configuration.
The hardcoding of 20 should be changed to player.getMaxHealth()
The same thing would apply to any health values above 20 but the plugin would simply stop healing them at 20.
Maybe the charset towards the mysql server should be made utf-8 since all tables are using utf8_general_ci as their collation type.
in com/palmergames/bukkit/towny/db/TownySQLSource.java
line 101
this.dsn = ("jdbc:mysql://" + hostname + ":" + port + "/" + db_name);
should be changed to
this.dsn = ("jdbc:mysql://" + hostname + ":" + port + "/" + db_name + "?useUnicode=true&characterEncoding=utf-8");
In this part, you are doing 2 substring. Should remove the one inside the loop.
Hello. The latest dev builds causing a lot of exceptions in console. I use MySQL. Can you fix them?
PasteBin: http://pastebin.com/csj5Z2hz
I use latest 1.7.2 dev version of towny.
I use Vault.
Towny is a really nice plugin but some features don't match for a non-english language user, especially town name, nation name and some character or phrase that unaffected by custom translation file
How can i translate this features? or when are you going to add some multilingual features in the future?
sorry for my bad english, but i want to know about this :D
[SEVERE] Could not pass event PlayerInteractEntityEvent to Towny v0.82.1.13
10:53:47 org.bukkit.event.EventException
10:53:47 at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:363)
10:53:47 at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
10:53:47 at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
10:53:47 at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
10:53:47 at iv.a(NetServerHandler.java:1554)
10:53:47 at dp.a(Packet7UseEntity.java:57)
10:53:47 at cg.b(TcpConnection.java:467)
10:53:47 at iv.d(NetServerHandler.java:220)
10:53:47 at iw.b(NetworkListenThread.java:57)
10:53:47 at ht.b(DedicatedServerListenThread.java:34)
10:53:47 at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:981)
10:53:47 at ho.r(DedicatedServer.java:309)
10:53:47 at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:857)
10:53:47 at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:744)
10:53:47 at fy.run(ThreadMinecraftServer.java:16)
10:53:47 Caused by: java.lang.NoClassDefFoundError: org/bukkit/entity/minecart/StorageMinecart
10:53:47 at com.palmergames.bukkit.towny.listeners.TownyPlayerListener.onPlayerInteractEntity(Unknown Source)
10:53:47 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:53:47 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
10:53:47 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
10:53:47 at java.lang.reflect.Method.invoke(Method.java:601)
10:53:47 at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:361)
10:53:47 ... 14 more
10:53:47 Caused by: java.lang.ClassNotFoundException: org.bukkit.entity.minecart.StorageMinecart
10:53:47 at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:251)
10:53:47 at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:243)
10:53:47 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
10:53:47 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
10:53:47 ... 20 more
Found out it doesnt work because 1.4.7 doesnt have this new class for the storageminecrart . May want to change the dev download link to say its not compatible with 1.4.7 any more :)
Would you consider installing the maven plugin onto your Jenkins? It would make it a lot easier for developers who use maven such as myself to add compatibility features onto our plugins.
Hello. Is there possibility to add my own TownBlockType by API?
Players noticed that blocks do not regen anymore in the wilderness after TNT explosions. Mob Explosions work fine. This worked before in previous versions. I have set "block-tnt-block-damage: true" in world guard config temporary until this is fixed. Here is a list of plugins and versions I'm using:
Using Latest Spigot 1.7.10
AdCraft 0.2.5 - Unknown Author
Adventures 1.0 - fullwall
Alchemist 1.1 - aPunch, jrbudda
AutoCraft 3.2-SNAPSHOT (Build 166) - dmulloy2
Blacksmith 1.1 - aPunch, jrbudda
"BloodMoon" "0.24-SNAPSHOT" - Unknown Author
Catacombs 3.6 - Unknown Author
ChestShop-towny 1.0.1 - Acrobot
ChestShop 3.7.15 - Acrobot
Citizens 2.0.13-SNAPSHOT (build 1146) - aPunch, fullwall
CraftBook "3.8-SNAPSHOT:3803-e037f90,master" - Unknown Author
Denizen 0.9.5-SNAPSHOT (build 1489) - aufdemrand
dynmap "2.0.0-SNAPSHOT-1024" - mikeprimm
Dynmap-Towny "0.60" - mikeprimm
EnjinMinecraftPlugin 2.6.8 - www.Enjin.com
Essentials 2.13.1 - Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology,
EssentialsAntiBuild 2.13.1 - Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans,
EssentialsChat 2.13.1 - Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans,
GroupManager 2.0 (Phoenix) - Unknown Author
EssentialsProtect 2.13.1 - Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans,
EssentialsSpawn 2.13.1 - Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans,
Jobs 2.11.4 - phrstbrn
Lockette 1.7.12 - Acru
Maplet 1.0 - aPunch, fullwall
BukkitCompat R22A - PhonicUK
McMyAdmin Compatibility Plugin
mcMMO 1.5.01-SNAPSHOT-b3611 - GJ, NuclearW, bm01, Glitchfinder, TfT_02, t00thpick1, Riking
MobArena 0.96.7 - garbagemule
Multiverse-Core 2.5-b688 - 'Rigby', 'fernferret', 'lithium3141', 'main--'
Multiverse-Inventories 2.5-b374 - dumptruckman
Multiverse-Portals 2.5-b699 - 'Rigby', 'fernferret'
NoCheatPlus 3.11.1-SNAPSHOT-sMD5NET-b740 - asofold, Evenprime
NoSwearing256 1.0.0.16 - Scott Merryfield
Orebfuscator 2.1.6 - lishid
ProtocolLib 3.4.0 - Comphenix
Questioner 0.6 - Shade,ElgarL
Runecraft '2.20 dev #1' - Zeerix, SuperLlama, C'tri
Sentry 1.8.2 - aufdemrand, jrbudda
ShowCaseStandalone 695 - kellerkindt, sorklin, bitfreeze, Ryzko, rtainc
Timeismoney 1.5 - Unknown Author
Towny 0.88.0.0 - Shade, Modified by FuzzeWuzze. Forked by ElgarL
TownyChat 0.40 - ElgarL, Shade, phrstbrn
Vault 1.4.1-b436 - cereal, Sleaker, mung3r
Warn 3.0 - GPSforLEGENDS
WorldBorder 1.8.0 - Brettflan
WorldEdit 5.6.2 - Unknown Author
WorldGuard "5.9" - Unknown Author
ZombieApocalypse 1.5.1 - sheodox
Thanks,
Romanovski
Hello.
I'm currently playing on a fairly large server using towny and we are not currently using the town rank system because it relies on the amount of players in a town.
Many of the people playing on this server don't like to have to fight over new players, and don't like to have the town decrease in size when players leave the town.
This also means that we cant use the upkeepModifier and several other town_level features.
Therefore it would be very beneficial to our server if an option was added to disable automatic upgrade/downgrade of town levels based on town members, and add an admin command to do said upgrade/downgrade.
Thanks in advance.
14:57:51 [SEVERE] Could not pass event EntityDeathEvent to Towny v0.84.0.7
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:437)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:31)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:330)
at net.minecraft.entity.monster.EntityBlaze.func_70628_a(EntityBlaze.java:218)
at net.minecraft.entity.EntityLivingBase.func_70645_a(EntityLivingBase.java:1132)
at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:1064)
at net.minecraft.entity.monster.EntityMob.func_70097_a(EntityMob.java:76)
at powercrystals.minefactoryreloaded.tile.machine.TileEntityGrinder.damageEntity(TileEntityGrinder.java:211)
at powercrystals.minefactoryreloaded.tile.machine.TileEntityGrinder.activateMachine(TileEntityGrinder.java:181)
at powercrystals.minefactoryreloaded.tile.base.TileEntityFactoryPowered.func_70316_g(TileEntityFactoryPowered.java:128)
at net.minecraft.world.World.func_72939_s(World.java:2787)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:887)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:330)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:781)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:663)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.NullPointerException
at com.palmergames.bukkit.towny.listeners.TownyEntityMonitorListener.onEntityDeath(Unknown Source)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:435)
... 18 more
I have my config setup to just rollback creeper explosions as i just want to allow tnt explosions in the wild to be allowed. Towny keeps rolling back the tnt explosions even though it is removed from the entities list. My config is as follows:
wild_revert_on_mob_explosion:
# Enabling this will slowly regenerate holes created in the
# wilderness by monsters exploding.
enabled: 'true'
entities: Creeper
delay: 20s
Hello,
Thank you for continuing to work on this awesome plugin!
I have my config option set to have no PvP in all worlds (can you even configure it to just one world?) unless players enable it in their plots (which they also abuse on unsuspecting victims sometimes unfortunately). However players can't use splash potions on mobs in the world, for example the Potion of Harming which is supposed to do damage does nothing instead.
What I think it should do is to hurt mobs, and maybe even the player throwing the potion, or have an option to disable this protection except for when used on other players and their pets in non-PvP areas.
I found the spot where it does this here: https://github.com/ElgarL/Towny/blob/master/src/com/palmergames/bukkit/towny/listeners/TownyEntityListener.java#L142
I don't know if the code this person used is what you would use for it or if you have seen this but they made a couple commits regarding a similar idea here:
https://github.com/octagami/Towny/commit/c930816b7d664e37c9fcdef04db16d0111a5ca0f
https://github.com/octagami/Towny/commit/38fecca6b9f19aafadc8e9814f70068ac2a31e19
Thank you =)
Players are able to break blocks inside towns they aren't a member of, is there anything i can check to see what the issue is?
It's only been noticed for a Month now. Might have been when Bukkit changed the BlockFace code. I also wanted to wait, i thought you may have already knew about it and didn't want to waste my time or yours.
Things like Pistons, Stairs, etc. don't regen correctly.
Some things are now duping: like PressurePlates
I guess I could change the configs to not allow those Blocks but I'd like to see what you had to say about this. I'm sure there are more Blocks that need looking into it.
In the latest dev build it suddenly says:
Residents aren't allowed to destroy
chere.
just like that when trying to destroy something. The cheer is white, the rest is red. Other messages about residents not being able to do anything seem to be normal to me so far. Only the destroy one seems broken. Maybe there's a typo some place?
Oh, sorry, it seems the rest are actually broken too.
I'd like to see a auto update feature for Towny, downloading the latest dev builds.
Could this be added?
if you delete a town it going to his old state how do i put that off?
and when you invite somebody to the town you join automaticly
I just did a completely fresh install of Towny 0.79.1.3. When a plot is unclaimed, it starts deleting ALL blocks in the plot. Reclaiming the plot will stop the deletion process. Also even though the rollback time is set for 20M, it deletes blocks at the rate of one per second.
This is the config I am using for the rollback function.
plot_management:
block_delete:
enabled: 'true'
# These items will be deleted upon a plot being unclaimed
unclaim_delete: 26,50,55,63,64,68,70,71,72,75,76,93,94
mayor_plotblock_delete:
enabled: 'true'
# These items will be deleted upon a mayor using /plot clear
# To disable deleting replace the current entries with NONE.
mayor_plot_delete: WALL_SIGN,SIGN_POST
revert_on_unclaim:
# *** WARNING***
# If this is enabled any town plots which become unclaimed will
# slowly be reverted to a snapshot taken before the plot was claimed.
#
# Regeneration will only work if the plot was
# claimed under version 0.76.2, or
# later with this feature enabled
#
# If you allow players to break/build in the wild the snapshot will
# include any changes made before the plot was claimed.
enabled: 'true'
speed: 20m
# These block types will NOT be regenerated
block_ignore: 14,21,22,41,42,48,50,52,56,57,63,68,89
Hello. I am not certain that this is a Towny issue or not, but want to report it anyways.
As in the title, MCPC+, Ars Magicka 2, and Towny aren't playing well with each other.
Specifically, the Dig spell will dig out anything, regardless of Towny.
Please advise on where to properly report this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.