Coder Social home page Coder Social logo

the-fireplace-minecraft-mods / clans Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 10.0 37.93 MB

A Minecraft land protection and PVP mod

Home Page: https://www.curseforge.com/minecraft/mc-mods/clans

License: GNU General Public License v3.0

Java 100.00%
minecraft minecraft-forge-mod minecraft-mod minecraft-plugin

clans's People

Contributors

lordfusion avatar the-fireplace avatar zconfa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clans's Issues

Make it easier to distinguish who is in what clan

This can be done in a number of ways. First of all, a /playerdetails command could be used to provide info about if a player is online, what clans the player is in, and what rank the player is in those clans. Secondly, the default clan could be shown before the player's name in the chat.

More visible clan details

This should include:

  • Clan description shows when you enter clan territory
  • View all players in clan details, not just online
  • See player info: What clans they are in
  • Ability to list all clans on a server

Sort options for /clan list

There should be sort options for /clan list. It needs to sort alphabetically by default, and be able to take an additional parameter to sort by land, money, or members.

ICBM integration

When a raid begins, and the rocket arrives from the neutral zone or the zone belonging to another fraction and hits the attacked zone, the destruction of the blocks does not occur.

Crash when using /clan home to teleport from other dimensions

When a player is in another dimension and uses /clan home to teleport to the overworld(or i guess wherever the clan is located) a server crash occurs.

java.lang.NullPointerException: Exception in server tick loop
	at net.minecraft.world.Teleporter.func_180620_b(Teleporter.java:134)
	at com.therandomlabs.randompatches.common.RPTeleporter.func_180620_b(RPTeleporter.java:46)
	at net.minecraft.world.Teleporter.func_180266_a(Teleporter.java:34)
	at com.therandomlabs.randompatches.common.RPTeleporter.func_180266_a(RPTeleporter.java:37)
	at net.minecraft.world.Teleporter.placeEntity(Teleporter.java:436)
	at com.therandomlabs.randompatches.common.RPTeleporter.placeEntity(RPTeleporter.java:73)
	at net.minecraft.server.management.PlayerList.transferEntityToWorld(PlayerList.java:721)
	at net.minecraft.server.management.PlayerList.transferPlayerToDimension(PlayerList.java:624)
	at net.minecraft.entity.player.EntityPlayerMP.changeDimension(EntityPlayerMP.java:695)
	at net.minecraft.entity.Entity.func_184204_a(Entity.java:2543)
	at the_fireplace.clans.commands.teleportation.CommandHome.teleportHome(CommandHome.java:71)
	at the_fireplace.clans.event.Timer.onServerTick(Timer.java:62)
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_473_Timer_onServerTick_ServerTickEvent.invoke(.dynamic)
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
	at net.minecraftforge.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:266)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:712)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
	at java.lang.Thread.run(Thread.java:748)

This seems to only occur when the player has left his/her clan for 5 minutes, or when the chunks have unloaded. The crash report mentions the mod "random labs" however i haven't found any mention of a problem like this on their side

Clans-1.12.2-1.2.4
GrandEconomy-1.12.2-1.0.1

Forge version :1.12.2-14.23.5.2781

Inviting the yourself to your clan

When I'm a leader of my own clan I can invite myself.

This is fine, however if i was to accept the clan invite it will 'invite' me and thus demote my leader rank to a normal rank.

I tested this both as an opped player and a regular player

Using clans 1.2.2 on mc version 1.12.2

Forge version :1.12.2-14.23.5.2781

Crash with Dynmap

Thank you for reporting!

For issues:

  • Try the latest version, it may have fixed the issue already.
  • Provide the Forge version you experienced the issue with. Do not say "latest" for this, provide the actual version number.
  • Provide the mod version you experienced the issue with. Do not say "latest" for this, provide the actual version number.
  • For any issue, providing your client and/or server logs can be helpful in geting the issue solved quickly. These are usually named something like latest.log, debug.log, fml-client-latest.log, or fml-server-latest.log and can be found in the logs folder. If you have one of these, please paste it to Ubuntu Pastebin or Pastebin and link it here. If you have latest.log and debug.log, please provide both.
  • If you crashed, please paste the crash log to Ubuntu Pastebin or Pastebin and link it here.

Don't charge to start the raid until the raid start command is used

As of right now, the charge is applied when the raiding party is formed. However, this is bad for several reasons:

  1. If the server goes down or the enemy clan members log off before starting the raid, that's money wasted.
  2. Anyone could join the raiding party then do /raid start, without anything preventing them from doing so. This change would put the cost of starting the raid onto whoever uses the /raid start command, thus deterring people from randomly starting the raid.

Storage Drawer Accessible in Clan Claims

Storage Drawers are accessible inside of a clan claimed area. You can left click the drawer and get items. I am on version Clans-1.12.2-1.1.5.jar of the mod.

Clan balance gains extra money on creation

http://prntscr.com/nbkje1

I have an initial balance. When i form a clan it deducts the set amount of credits (i looked through the source and im confident that works accordingly)

I:formClanBankAmount=5000

# Cost of forming a clan. This requires a compatible economy to be installed.
# Min: 0
# Max: 2147483647
I:formClanCost=100`

However when the clan is formed i seem to get an extra $175?

This is my config setting for GrandEconomy
# Amount of credits given to new players joining the server [range: 0 ~ 10000, default: 100] I:startBalance=200

So i did a bit of digging. It seems on the New clan creation/construction it creates a new Grandeconomy account?

Clans.getPaymentHandler().ensureAccountExists(clanId);

public void ensureAccountExists(UUID account) {
		Account.get(account);
	}

To which it then adds the config amount to this new GrandEconomy account;

Clans.getPaymentHandler().addAmount(Clans.cfg.formClanBankAmount, clanId);

So in theory its an extra $200. However i instead end up with an extra $175 so i don't know whats happening to deduct $25.

Anyway to sum up, i get an extra $175 on clan creation on top of formClanBankAmoun

Clans-1.12.2-1.2.3
GrandEconomy-1.12.2-1.0.1

Forge version :1.12.2-14.23.5.2781

Edit: Also side note, with /clan details giving details of clan, what was the decision of having the clan balance not being displayed on the details?

Force clans to have connected claims

This should be a config option that forces clans to have connected claims. This prevents clans from having one faraway claim with one player sitting on it running the raid timer out.

EntityPlayerMP-based caching may be unreliable

Clearly this doesn't work too well since players are reporting errors such as it randomly thinking they are not in a clan. Solution: Switch to UUID based caching. ClanCache methods can still accept EntityPlayerMP and use the player's UUID for the check.

Currently on latest version:

Thank you for reporting!

For issues:

  • Try the latest version, it may have fixed the issue already.
  • Provide the Forge version you experienced the issue with. Do not say "latest" for this, provide the actual version number.
  • Provide the mod version you experienced the issue with. Do not say "latest" for this, provide the actual version number.
  • For any issue, providing your client and/or server logs can be helpful in geting the issue solved quickly. These are usually named something like latest.log, debug.log, fml-client-latest.log, or fml-server-latest.log and can be found in the logs folder. If you have one of these, please paste it to Ubuntu Pastebin or Pastebin and link it here. If you have latest.log and debug.log, please provide both.
  • If you crashed, please paste the crash log to Ubuntu Pastebin or Pastebin and link it here.

Compatibility with Mekanism (Digital Miner)

Version: Clans 1.2.3

Mekanism Mod have 1 Ítems, Digital Miner. This object is capable of mining automatically. But it can not be used by its owners, in their own areas.

Clan permissions get lost when the player dies?

According to some users on Discord, the clan command permissions are lost when you die, and you must relog to regain permission. My guess is that it's a capability related issue, needs further investigation.

Clan Invitation Message goes to the wrong person

When inviting someone to the clan, you are the recipient of the invite message in chat, rather than the person being invited who is instead left unnotified. They can still accept the invite if they blindly type the "/accept" command.

Add a way to make claimed containers/blocks private or public

This would add several new commands:
/clan lock|l [private|clan|open] - private(default): makes a chest private to the player who locked it, clan: prevents anyone from locking the chest, leaving it accessible to the whole clan, open: prevents anyone from locking the chest, and grants access to players who are not in the clan
/clan lockchunk|lc [private|clan|open] - same as above but for all containers in the chunk
/clan unlock|ul - removes the lock from a claimed chest. Clan leaders can use this to unlock any chest in their clan.
/clan grantaccess|ga - gives the specified player access to your locked chest. Does not have to be a clan member, but if they are then get removed, they should get removed from the container.
/clan takeaccess|ta - removes a player's access from the container

In addition to all of this, the locks on chests should go away when the clan is disbanded. Users' locked chests unlock when they leave or are kicked from the clan.

Change the clan database into a json format

This would make updating it to add new information easier, and allow server owners to directly modify clans. Keep the legacy file there and make sure it can deserialize old databases and export them into the new json format.

Color coding the map

For colors, perhaps Red for other clans' territory, Green for your clans' territory, Yellow for wilderness, and Blue for the player's position.

Minimap integration

As someone on CF suggested, minimap integration for claimed land would be a plus. This would likely require Clans to be loaded on the client side to do the integration, but this client presence could be used for more aesthetic improvements and features in the future. It would be an optional client presence too, so if Clans is not loaded on the client, no harm done, the mod still works as intended.

Config Gui doesn't save config values

Thank you for reporting! Please provide the information requested below in this post and delete this template. There is no need to make a separate comment with the below details if you put them into this post.

For issues:

  • Try the latest version, it may have fixed the issue already.
  • Provide the Forge version you experienced the issue with. Do not say "latest" for this, provide the actual version number.
  • Provide the mod version you experienced the issue with. Do not say "latest" for this, provide the actual version number.
  • For any issue, providing your client and/or server logs can be helpful in geting the issue solved quickly. These are usually named something like latest.log, debug.log, fml-client-latest.log, or fml-server-latest.log and can be found in the logs folder. If you have one of these, please paste it to Ubuntu Pastebin or Pastebin and link it here. If you have latest.log and debug.log, please provide both.
  • If you crashed, please paste the crash log to Ubuntu Pastebin or Pastebin and link it here.

Private plot system

Clan members should be able to be issued private plots within their clan that only they can modify. Pricing should come in the form of either increased rent for that player or a separate private plot fee.

Raid Start Buffer Period

Add a "buffer" period of time between /raid start and the start of the raid. This gives the defenders a chance to prepare to defend themselves. This period of time should be a config option set to 90 seconds by default.

You can only damage hostile/animal mobs inside your own claim.

Weird bug where as soon as I leave my claimed chunks, be it directly into another claim or into the wilderness, I stop doing damage to hostile and friendly mobs.

I can hit them, the animation plays and the sound effects do too, but I could stand there and swing for 15 minutes at a single mob.

Mobs ignoring fake player and 'buildadmins' attacks

When a mob farm is in use all mobs are immune to damage from all modded mob killing blocks(Extra utilities: spikes, Extra utilities:mechanical user, Draconic Evolution: Mob Grinder...e.t.c)

In more detail, mobs get hit and a sound effect occurs however there is no health reduction from targeted mob.

In regards to buildadmins: All mobs ignore any interaction with a buildadmin/opped player.

Clans-1.12.2-1.2.4
GrandEconomy-1.12.2-1.0.1

Forge version :1.12.2-14.23.5.2781

More opclan commands

Allow OPs to promote, demote, or kick other clans' members, disband other clans, and edit other clans' names and descriptions.

Allow players to be members of multiple clans

Since clans don't exactly form alliances or go to war with each other, there is no reason not to allow players to join multiple clans. Leave a config option in so servers can disable this feature if they wish.

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.